package com.zhouxiaoge.ribbon;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 周明阳
 * @date 2019/3/26 17:14
 */

@Configuration
@ExcludeFromComponentScan
public class MyRibbonConfiguration {

    @Bean
    public IRule ribbonRule() {
        return new RandomRule();
    }

}
